package com.yumeko.springcloud.server;

import com.yumeko.springcloud.entity.TPayment;
import com.yumeko.springcloud.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.concurrent.TimeUnit;

@Component
@FeignClient(value = "CLOUD-PROVIDER-SERVICE")
public interface PaymentFeignClientServer {

    @GetMapping(value="/tPayment/selectOne1/{id}")
    public ResponseData selectOnePayment1(@PathVariable("id") Long id);

    @GetMapping(value="/tPayment/selectOne")
    public ResponseData selectOnePayment(@RequestParam("id") Long id);

    @GetMapping("/tPayment/payment/feign/timeout")
    public String paymentFeignTimeOut();
}
